package com.tencent.mm.opensdk.diffdev.a;

import android.util.Log;

import com.tencent.mm.opensdk.diffdev.OAuthErrCode;
import com.tencent.mm.opensdk.diffdev.OAuthListener;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

final class b implements OAuthListener {
    protected final a k;

    b(a arg1) {
        this.k = arg1;

    }

    public final void onAuthFinish(OAuthErrCode arg6, String arg7) {
        Log.d("MicroMsg.SDK.ListenerWrapper", String.format("onAuthFinish, errCode = %s, authCode = %s", arg6.toString(), arg7));
        a.c(this.k);
        ArrayList<OAuthListener> v0 = new ArrayList();
        ((List) v0).addAll(a.a(this.k));
        Iterator<OAuthListener> v1 = ((List) v0).iterator();
        while (v1.hasNext()) {
            v1.next().onAuthFinish(arg6, arg7);
        }
    }

    public final void onAuthGotQrcode(String arg4, byte[] arg5) {
        Log.d("MicroMsg.SDK.ListenerWrapper", "onAuthGotQrcode, qrcodeImgPath = " + arg4);
        ArrayList<OAuthListener> v0 = new ArrayList();
        ((List) v0).addAll(a.a(this.k));
        Iterator<OAuthListener> v1 = ((List) v0).iterator();
        while (v1.hasNext()) {
            v1.next().onAuthGotQrcode(arg4, arg5);
        }
    }

    public final void onQrcodeScanned() {
        Log.d("MicroMsg.SDK.ListenerWrapper", "onQrcodeScanned");
        if (a.b(this.k) != null) {
            a.b(this.k).post(new c(this));
        }
    }
}

